using System;
using System.Collections.Generic;
using System.Text;
using Castle.ActiveRecord.Framework.Config;
using Castle.ActiveRecord;

using Ray.Web.Models;

namespace Ray.Web
{
    public class Utility
    {
        public static void InitTable()
        {
            //XmlConfigurationSource source = new XmlConfigurationSource("Ray.Web/appconfig.xml");
            //ActiveRecordStarter.Initialize(source, typeof(Ray_Column), typeof(Ray_Master), typeof(Ray_Content));
            //ActiveRecordStarter.Initialize(source,typeof(Blog));

            // 2. Create the schema 

            // If you want to let AR to create the schema
            
            ActiveRecordStarter.CreateSchema();
           
        }
    }

}
